//
//  KKImgSectionCell.m
//  DoMi
//
//  Created by 康凯 on 2016/12/2.
//  Copyright © 2016年 kk. All rights reserved.
//

#import "KKImgSectionCell.h"

@implementation KKImgSectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
#pragma mark 发布文章
-(void)initData:(NSString *)url{
    [self.sectionImg sd_setImageWithURL:[NSURL URLWithString:url]];
}
#pragma mark 展示文章
-(void)initShowData:(NSString *)url{
    self.backgroundColor=[UIColor whiteColor];
    self.handleEventView.hidden=YES;
    [self.sectionImg sd_setImageWithURL:[NSURL URLWithString:url]];
}

- (IBAction)modifyClick:(id)sender {
    self.modifyBlock();
}
- (IBAction)upMoveClick:(id)sender {
    self.upMoveBlock();
}
- (IBAction)downMoveClick:(id)sender {
    self.downMoveBlock();
}
- (IBAction)delClick:(id)sender {
    self.delBlock();
}
@end
